home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / chrome / browser.jar / content / browser / web-panels.xul < prev   
Extensible Markup Language  |  2006-08-23  |  13KB  |  259 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  5.  
  6. <!DOCTYPE window SYSTEM "chrome://browser/locale/browser.dtd">
  7.  
  8. <page id="webpanels-window"
  9.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  10.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         onload="load()" onunload="unload()"> 
  12.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  13.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  14.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  15.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  16.   <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  17.   <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  18.   <script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
  19.   <script type="application/x-javascript" src="chrome://browser/content/web-panels.js"/>
  20.  
  21.   <stringbundleset id="stringbundleset"> 
  22.     <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  23.   </stringbundleset>
  24.     
  25.   <popupset id="mainPopupSet">
  26.  
  27.     <popup id="contentAreaContextMenu"
  28.            onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu( this ); return gContextMenu.shouldDisplay;"
  29.            onpopuphiding="if (event.target == this) { gContextMenu = null; }">
  30.       <menuitem id="spell-no-suggestions"
  31.                 disabled="true"
  32.                 label="&spellNoSuggestions.label;"/>
  33.       <menuitem id="spell-add-to-dictionary"
  34.                 label="&spellAddToDictionary.label;"
  35.                 accesskey="&spellAddToDictionary.accesskey;"
  36.                 oncommand="InlineSpellCheckerUI.addToDictionary();"/>
  37.       <menuseparator id="spell-suggestions-separator"/>
  38.       <menuitem id="context-openlink"
  39.                 label="&openLinkCmd.label;"
  40.                 accesskey="&openLinkCmd.accesskey;"
  41.                 oncommand="gContextMenu.openLink();"/>
  42.       <menuitem id="context-openlinkintab"
  43.                 label="&openLinkCmdInTab.label;"
  44.                 accesskey="&openLinkCmdInTab.accesskey;"
  45.                 oncommand="gContextMenu.openLinkInTab();"/>
  46.       <menuseparator id="context-sep-open"/>
  47.       <menuitem id="context-bookmarklink"
  48.                 label="&bookmarkLinkCmd.label;"
  49.                 accesskey="&bookmarkLinkCmd.accesskey;"
  50.                 oncommand="BookmarksUtils.addBookmark(gContextMenu.linkURL,
  51.                                                       gContextMenu.linkText());"/>
  52.       <menuitem id="context-savelink"
  53.                 label="&saveLinkCmd.label;"
  54.                 accesskey="&saveLinkCmd.accesskey;"
  55.                 oncommand="gContextMenu.saveLink();"/>
  56.       <menuitem id="context-sendlink"
  57.                 label="&sendLinkCmd.label;"
  58.                 accesskey="&sendLinkCmd.accesskey;"
  59.                 oncommand="gContextMenu.sendLink();"/>
  60.       <menuitem id="context-copyemail"
  61.                 label="©EmailCmd.label;"
  62.                 accesskey="©EmailCmd.accesskey;"
  63.                 oncommand="gContextMenu.copyEmail();"/>
  64.       <menuitem id="context-copylink"
  65.                 label="©LinkCmd.label;"
  66.                 accesskey="©LinkCmd.accesskey;"
  67.                 command="cmd_copyLink"/>
  68.       <menuseparator id="context-sep-copylink"/>
  69.       <menuitem id="context-viewimage"
  70.                 label="&viewImageCmd.label;"
  71.                 accesskey="&viewImageCmd.accesskey;"
  72.                 oncommand="gContextMenu.viewImage(event);"
  73.                 onclick="checkForMiddleClick(this, event);"/>
  74.       <menuitem id="context-copyimage-contents"
  75.                 label="©ImageContentsCmd.label;"
  76.                 accesskey="©ImageContentsCmd.accesskey;"
  77.                 command="cmd_copyImageContents"/>
  78.       <menuitem id="context-copyimage"
  79.                 label="©ImageCmd.label;"
  80.                 accesskey="©ImageCmd.accesskey;"
  81.                 command="cmd_copyImageLocation"/>
  82.       <menuseparator id="context-sep-copyimage"/>
  83.       <menuitem id="context-saveimage"
  84.                 label="&saveImageCmd.label;"
  85.                 accesskey="&saveImageCmd.accesskey;"
  86.                 oncommand="gContextMenu.saveImage();"/>
  87.       <menuitem id="context-sendimage"  
  88.                 label="&sendImageCmd.label;" 
  89.                 accesskey="&sendImageCmd.accesskey;" 
  90.                 oncommand="gContextMenu.sendImage();"/>
  91.       <menuitem id="context-setDesktopBackground"
  92.                 label="&setDesktopBackgroundCmd.label;"
  93.                 accesskey="&setDesktopBackgroundCmd.accesskey;"
  94.                 oncommand="gContextMenu.setDesktopBackground();"/>
  95.       <menuitem id="context-blockimage"
  96.                 type="checkbox"
  97.                 accesskey="&blockImageCmd.accesskey;"
  98.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
  99.       <menuitem id="context-back"
  100.                 label="&backCmd.label;"
  101.                 accesskey="&backCmd.accesskey;"
  102.                 command="Browser:Back"/>
  103.       <menuitem id="context-forward"
  104.                 label="&forwardCmd.label;"
  105.                 accesskey="&forwardCmd.accesskey;"
  106.                 command="Browser:Forward"/>
  107.       <menuitem id="context-reload"
  108.                 label="&reloadCmd.label;"
  109.                 accesskey="&reloadCmd.accesskey;"
  110.                 command="Browser:Reload"/>
  111.       <menuitem id="context-stop"
  112.                 label="&stopCmd.label;"
  113.                 accesskey="&stopCmd.accesskey;"
  114.                 command="Browser:Stop"/>
  115.       <menuseparator id="context-sep-stop"/>
  116.       <menuitem id="context-bookmarkpage"
  117.                 label="&bookmarkPageCmd.label;"
  118.                 accesskey="&bookmarkPageCmd.accesskey;"
  119.                 oncommand="addBookmarkAs(document.getElementById('content'));"/>
  120.       <menuitem id="context-savepage"
  121.                 label="&savePageCmd.label;"
  122.                 accesskey="&savePageCmd.accesskey2;"
  123.                 oncommand="saveDocument(window.content.document);"/>
  124.       <menuitem id="context-sendpage"  
  125.                 label="&sendPageCmd.label;" 
  126.                 accesskey="&sendPageCmd.accesskey;" 
  127.                 command="Browser:SendLink"/>
  128.       <menuseparator id="context-sep-viewbgimage"/>  
  129.       <menuitem id="context-viewbgimage"
  130.                 label="&viewBGImageCmd.label;"
  131.                 accesskey="&viewBGImageCmd.accesskey;"
  132.                 oncommand="gContextMenu.viewBGImage(event);"
  133.                 onclick="checkForMiddleClick(this, event);"/>
  134.       <menuitem id="context-undo"
  135.                 label="&undoCmd.label;"
  136.                 accesskey="&undoCmd.accesskey;"
  137.                 command="cmd_undo"/>
  138.       <menuseparator id="context-sep-undo"/>
  139.       <menuitem id="context-cut"
  140.                 label="&cutCmd.label;"
  141.                 accesskey="&cutCmd.accesskey;"
  142.                 command="cmd_cut"/>
  143.       <menuitem id="context-copy"
  144.                 label="©Cmd.label;"
  145.                 accesskey="©Cmd.accesskey;"
  146.                 command="cmd_copy"/>
  147.       <menuitem id="context-paste"
  148.                 label="&pasteCmd.label;"
  149.                 accesskey="&pasteCmd.accesskey;"
  150.                 command="cmd_paste"/>
  151.       <menuitem id="context-delete"
  152.                 label="&deleteCmd.label;"
  153.                 accesskey="&deleteCmd.accesskey;"
  154.                 command="cmd_delete"/>
  155.       <menuseparator id="context-sep-paste"/>
  156.       <menuitem id="context-selectall"
  157.                 label="&selectAllCmd.label;"
  158.                 accesskey="&selectAllCmd.accesskey;"
  159.                 command="cmd_selectAll"/>      
  160.       <menuseparator id="context-sep-selectall"/>
  161.       <menuitem id="context-keywordfield"
  162.                 label="&keywordfield.label;"
  163.                 accesskey="&keywordfield.accesskey;"
  164.                 oncommand="AddKeywordForSearchField();"/>
  165.       <menuitem id="context-searchselect"
  166.                 accesskey="&search.accesskey;"
  167.                 oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
  168.       <menuseparator id="frame-sep"/>
  169.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  170.         <menupopup>
  171.           <menuitem label="&showOnlyThisFrameCmd.label;"
  172.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  173.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  174.           <menuitem label="&openFrameCmd.label;"
  175.                     accesskey="&openFrameCmd.accesskey;"
  176.                     oncommand="gContextMenu.openFrame();"/>
  177.           <menuitem label="&openFrameCmdInTab.label;"
  178.                     accesskey="&openFrameCmdInTab.accesskey;"
  179.                     oncommand="gContextMenu.openFrameInTab();"/>
  180.           <menuseparator/>
  181.           <menuitem label="&reloadFrameCmd.label;"
  182.                     accesskey="&reloadFrameCmd.accesskey;"
  183.                     oncommand="gContextMenu.reloadFrame();"/>
  184.           <menuseparator/>
  185.           <menuitem label="&bookmarkFrameCmd.label;"
  186.                     accesskey="&bookmarkFrameCmd.accesskey;"
  187.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  188.           <menuitem label="&saveFrameCmd.label;"
  189.                     accesskey="&saveFrameCmd.accesskey;"
  190.                     oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
  191.           <menuseparator/>
  192.           <menuitem label="&viewFrameSourceCmd.label;"
  193.                     accesskey="&viewFrameSourceCmd.accesskey;"
  194.                     oncommand="gContextMenu.viewFrameSource();"/>
  195.           <menuitem label="&viewFrameInfoCmd.label;"
  196.                     accesskey="&viewFrameInfoCmd.accesskey;"
  197.                     oncommand="gContextMenu.viewFrameInfo();"/>        
  198.         </menupopup>
  199.       </menu>
  200.       <menuseparator id="context-sep-properties"/>
  201.       <menuitem id="context-viewpartialsource-selection"
  202.                 label="&viewPartialSourceForSelectionCmd.label;"
  203.                 accesskey="&viewPartialSourceCmd.accesskey;"
  204.                 oncommand="gContextMenu.viewPartialSource('selection');"/>
  205.       <menuitem id="context-viewpartialsource-mathml"
  206.                 label="&viewPartialSourceForMathMLCmd.label;"
  207.                 accesskey="&viewPartialSourceCmd.accesskey;"
  208.                 oncommand="gContextMenu.viewPartialSource('mathml');"/>
  209.       <menuitem id="context-viewsource"
  210.                 label="&viewPageSourceCmd.label;"
  211.                 accesskey="&viewPageSourceCmd.accesskey;"
  212.                 oncommand="BrowserViewSourceOfDocument(content.document);"/>
  213.       <menuitem id="context-viewinfo"
  214.                 label="&viewPageInfoCmd.label;"
  215.                 accesskey="&viewPageInfoCmd.accesskey;"
  216.                 oncommand="gContextMenu.viewInfo();"/>
  217.       <menuitem id="context-metadata"
  218.                 label="&metadataCmd.label;"
  219.                 accesskey="&metadataCmd.accesskey;"
  220.                 oncommand="gContextMenu.showMetadata();"/>
  221.       <menuseparator id="spell-separator"/>
  222.       <menuitem id="spell-check-enabled"
  223.                 label="&spellEnable.label;"
  224.                 type="checkbox"
  225.                 accesskey="&spellEnable.accesskey;"
  226.                 oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
  227.       <menuitem id="spell-add-dictionaries-main"
  228.                 label="&spellAddDictionaries.label;"
  229.                 accesskey="&spellAddDictionaries.accesskey;"
  230.                 oncommand="gContextMenu.addDictionaries();"/>
  231.       <menu id="spell-dictionaries"
  232.             label="&spellDictionaries.label;"
  233.             accesskey="&spellDictionaries.accesskey;">
  234.           <menupopup id="spell-dictionaries-menu">
  235.               <menuseparator id="spell-language-separator"/>
  236.               <menuitem id="spell-add-dictionaries"
  237.                         label="&spellAddDictionaries.label;"
  238.                         accesskey="&spellAddDictionaries.accesskey;"
  239.                         oncommand="gContextMenu.addDictionaries();"/>
  240.           </menupopup>
  241.       </menu>
  242.       <menuseparator hidden="true" id="context-sep-bidi"/>
  243.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  244.                 label="&bidiSwitchTextDirectionItem.label;"
  245.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  246.                 command="cmd_switchTextDirection"/>
  247.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  248.                 label="&bidiSwitchPageDirectionItem.label;"
  249.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  250.                 oncommand="SwitchDocumentDirection(window.content);"/>
  251.     </popup>
  252.   </popupset>
  253.   
  254.   
  255.   <browser id="web-panels-browser" persist="cachedurl" type="content" flex="1"
  256.            context="contentAreaContextMenu"
  257.            onclick="return window.parent.contentAreaClick(event, true);"/>
  258. </page>
  259.